Align jedi_lfric_tests linear model/adjoint testing to adjoint_tests and linear_model#156
Align jedi_lfric_tests linear model/adjoint testing to adjoint_tests and linear_model#156tom-j-h wants to merge 51 commits intoMetOffice:mainfrom
Conversation
…j-h/lfric_apps into align_adjoint_tests_to_linear_model
…test_tolerance_nml
…ted. Need to do jedi_tlm_forecast_tl
…test_tolerance_nml
…tests_to_linear_model
…test_tolerance_nml
…tests_to_linear_model
|
Have added responses to inline comments now, and pushed related changes. |
…test_tolerance_nml
…tests_to_linear_model
Sorry - I did use your diff but managed to identify the wrong file when adding my comment, sorry for the confusion.
The issue is the jedi specific bits are not obvious because we are not able to add that into the configuration. What we are doing is safe but it is a little confusing.
Thanks, yes Ive looked at the update. The nwp optional part is just pointing at newer files so I think the base configuration is effectively the
Thanks, yes I assumed that was the case.
Regarding the configurations:
The other apps ( It would be good to update I looked at the diff again tom-j-h/lfric_apps@jelf_adjoint_test_tolerance_nml...tom-j-h:lfric_apps:align_jedi_lfric_tests_to_linear_model, I noticed a few things that I mentioned in previous note that have not been updated. I think mainly due to confusion with me picking the wrong file. I add the notes here, can take a look?
i. File section looks like: ii. Initialization has: iii. Partitioning has (not sure how much it matters...): |
|
Thanks Steve, everything addressed now, including updating configs for jedi_lfric_tests and jedi_tlm_forecast_tl. jedi_lfric_tests_developer group all okay except KGOs need updating: https://cylchub/services/cylc-review/taskjobs/tom.hill/?suite=align_jedi_lfric_tests_to_linear_model-jedi_lfric_tests_developer%2Frun2 Ready for rereview. |
Thanks for the updates. Happy with the changes but note that the KGO needs updating so some KGO checks are failing. This is due to an update to the configuration so it is expected and Im happy for the new kgo's to be added. Im not sure of the process related to that. Should that be done before sending to CR? @mike-hobson @tom-j-h |
|
Thanks for bearing with me @ss421 ! I believe KGOs are updated by the Code Reviewer. |
|
Looks like the |
ss421
left a comment
There was a problem hiding this comment.
While reviewing another change (#182 (comment)) I noticed that I missed a few places where the configuration was modified. These are example canned test configurations so they do not impact on testing and should not impact on CR. Apologies for missing these.
applications/jedi_lfric_tests/example_tlm_forecast_tl/configuration.nml
Outdated
Show resolved
Hide resolved
applications/jedi_lfric_tests/example_tlm_forecast_tl/configuration.nml
Outdated
Show resolved
Hide resolved
…test_tolerance_nml
…tests_to_linear_model
|
This requires a small JEDI update. @tom-j-h will provide this. Captured in the next release PR here: https://github.com/JCSDA-internal/lfric-jedi/pull/1206 |
|
#132 is on which I think unblocks this one to be brought up to date and reviewed |
Thanks, now updated. |
PR Summary
Sci/Tech Reviewer: @ss421
Code Reviewer: @mike-hobson
PLEASE NOTE - this is a follow-on to #132. The branch was created from #132's branch in my fork, but I can't make a PR into that branch because then I would be stuck in my fork. So, to look at the actual changes relevant to this PR alone, look at the diff of this branch with #132's branch: tom-j-h/lfric_apps@jelf_adjoint_test_tolerance_nml...tom-j-h:lfric_apps:align_jedi_lfric_tests_to_linear_model
Similar to #84, but for applications of
jedi_lfric_teststhat use the linear and adjoint models.This change relies on the same small code change in science/adjoint as #84. It is also very useful to be able to set adjoint test tolerance via a namelist variable () for running the strict vs. relaxed adjoint tests, hence the order of branching.
A bug (incorrect adjoint) relating to the incremental wind interpolation added in https://code.metoffice.gov.uk/trac/lfric_apps/ticket/369 has arisen due to the changes here. The specific cause has not been identified. For now, this is switched off. This is not high priority, hence not investigating and fixing it as part of this work. Have opened #128.
The same approach to handling the bug highlighted in #84 (
rrt_equals_dt) is taken here; this has issue #87.linked Avoid
panel_decomposition_modcausing a divide-by-zero lfric_core#227is blocked-by jelf adjoint test tolerance namelist variable #132
blocks Adjoint test initialised from realistic increment in jelf #161
closes Align jedi_lfric_tests linear model/adjoint testing to adjoint_tests/linear_model #85
Code Quality Checklist
Testing
trac.log
I can't find my
trac.log! It might be because I ran with--no-run-name? Here's the Cylc Review: https://cylchub/services/cylc-review/taskjobs/tom.hill/?suite=align_jedi_lfric_tests_to_linear_model-developer.Security Considerations
Performance Impact
AI Assistance and Attribution
Documentation
PSyclone Approval
Sci/Tech Review
(Please alert the code reviewer via a tag when you have approved the SR)
Code Review